package com.chengfei.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;

import javax.validation.constraints.Pattern;
import java.io.Serializable;


/**
 * People class
 *
 * @author chengfei5
 * @date 2018/5/9
 */

public class People implements Serializable {
    @Excel(name = "学生Id")
    private String id;

    @Excel(name = "姓名")
    @Pattern(regexp = "[\\u4E00-\\u9FA5]{2,5}", message = "姓名中文2-5位")
    private String name;

    @Excel(name = "学生地址")
    private String address;



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "People{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
